package com.springcloud.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "eureka-provide-hystrix")
public interface XxService {
    @RequestMapping(value = "/hystrix/ok")
    public String HyStrix_ok();
    @RequestMapping(value = "/hystrix/no/ok")
    public String HyStrix_no_ok();
    @RequestMapping(value = "/hystrix/zero")
    public String Hystrix_zero();
    @RequestMapping(value = "/hystrix/{id}")
    public String Hystrix(@PathVariable("id") Integer id);
}
